package com.sas.web.articles;

import com.sas.web.SasBasePage;
import com.sas.web.panel.AddPanel;
import com.sas.web.panel.articles.ArticleFieldTreePanel;
import com.sas.web.panel.articles.ArticlesListPanel;
import com.sas.web.panel.flows.FlowsShortListPanel;
import com.sas.web.panel.stocks.StocksShortListPanel;
import com.sas.web.panel.vendors.VendorsShortListPanel;


public class ArticlesPage extends SasBasePage{	
	public ArticlesPage () {
		add(new AddPanel("addPanel", ArticleAddPage.class));
		ArticleFieldTreePanel aftp = new ArticleFieldTreePanel("articleFieldTreePanel", ArticlesPage.class);
		ArticlesListPanel alp = new ArticlesListPanel("articlesListPanel", aftp);
		add(aftp);
		add(alp);
		add(new VendorsShortListPanel("vendorsListPanel", alp));
		add(new StocksShortListPanel("stocksListPanel", alp));
		add(new FlowsShortListPanel("flowsListPanel", alp));		
		
	}
	
	public ArticlesPage (ArticleFieldTreePanel aftp) {
		add(new AddPanel("addPanel", ArticleAddPage.class));
		ArticlesListPanel alp = new ArticlesListPanel("articlesListPanel", aftp);
		add(aftp);
		add(alp);
		add(new VendorsShortListPanel("vendorsListPanel", alp));
		add(new StocksShortListPanel("stocksListPanel", alp));
		add(new FlowsShortListPanel("flowsListPanel", alp));		
	}
}
